import Vue from 'vue'
import Vuex from 'vuex'

Vue.use(Vuex)

export default new Vuex.Store({
  state: {
    userInfo: {}
  },
  mutations: {
    updateUserInfo(state, newValue) {
      state.userInfo = newValue
    }
  },
  //异步提交数据
  actions: {
  },
  //vuex模块化
  modules: {
  }
})
